package com.xydtech.ecard.ftp.enums;

/**
 * @Author: liliya
 * @Description: sheet-价格试算,不同项的类型
 * ftp_deposit_loan_rate_config
 *   `config_type` tinyint(1) DEFAULT NULL COMMENT '期限类型,1存贷款收益率曲线,2期限流动性溢价-点差2(原始期限)',
 * @Date: Created in 2023/8/15 19:25
 * @Modified:
 */

public enum FtpPricingParamTypeEnum {

    DEPOSIT_LOAD_YIELD_CURVE(1,"存贷款收益率曲线"),
    TERM_LIQUIDITY_PREMIUM_SPREAD2(2,"期限流动性溢价-点差2(原始期限)");

    private int value;
    private String label;

    FtpPricingParamTypeEnum(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public int getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public static FtpPricingParamTypeEnum values(int code){
        for(FtpPricingParamTypeEnum enums : FtpPricingParamTypeEnum.values()){
            if(enums.getValue() == code){
                return enums;
            }
        }
        return null;
    }

}
